children vs child dart

118

child takes a single widget

child: Text('foo')
children takes a list of widgets

children: <Widget>[Text('foo'), Text('bar')]

Comments

Submit
0 Comments